﻿using Abp.Application.Services;
using FwProject.BrandInfo.Dto;
using FwProject.ShopApplication;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace FwProject.BrandInfo
{
    /// <summary>
    /// 品牌管理
    /// </summary>
    public interface IBrandInfoAppService : IApplicationService
    {
        /// <summary>
        /// 获取品牌分页数据
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="keyword"></param>
        /// <returns></returns>
        Task<LayerDataBaseDto> GetBrandLayerDataAsync(int page, int limit, string keyword);
        /// <summary>
        /// 根据id获取品牌数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<BrandInput> GetEnterDtoAsync(Guid id);

        /// <summary>
        /// 搜索引擎需要对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        BrandDto GetByIdAsync(Guid id);
        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Guid> CreateAsync(BrandInput input);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="id"></param>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Guid> ModifyAsync(Guid id, BrandInput input);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteAsync(Guid id);
    }
}
